class TrafficStatMonth < ActiveRecord::Base
  belongs_to :terminal
  attr_accessible :flow, :month, :year, :key

  def start_date
    Date.parse(self.key+'-01')
  end

  def end_date
    Date.parse(self.key+'-01').end_of_month
  end

end
